#!/usr/bin/env python
#coding:utf-8
from .baseHandler import BaseHandler
from tornado import escape
import tornado.gen
import tornado.web



class AccessHandler(BaseHandler):

    @tornado.web.asynchronous
    @tornado.gen.coroutine
    def get(self, *args, **kwargs):
        results = []
        access = {}
        access['_xsrf'] = escape.xhtml_escape(self.xsrf_token)
        results.append(access)
        self.response_msg(200,'ok',results)